package com.py.user.controller;

import com.py.model.common.dtos.ResponseResult;
import com.py.model.user.dtos.UserRelatioinDto;
import com.py.user.service.ApUserFollowBehaviorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ApUserFollewBehavior
 * @Description TODO
 * @Author AXing
 * @Date 2022/11/17 11:18
 * @Version 1.0
 */
@RestController
@RequestMapping("/api/v1/user")
public class ApUserFollowBehaviorController {

    @Autowired
    private ApUserFollowBehaviorService behaviorService;

    @PostMapping("/user_follow")
    public ResponseResult userFollow(@RequestBody UserRelatioinDto dto){
        return behaviorService.userFollow(dto);
    }
}
